<?php
    echo "<table>";
    foreach($template->get('products') as $key => $oProduct)
    {
        echo "<tr>";    
        echo "<td>".$oProduct->masp."</td>";
        echo "<td>".$oProduct->tensp."</td>";
        echo "<td>".$oProduct->dongia."</td>";
        echo "</tr>";
    }
    echo "<table>";
?>
